<htn>
    <head>
    </head>
    <body>
         <h1>Editar foto</h1>
        <?php 
         session_start();
         require 'checksLogged.php';
        include 'menu.php';?>
        <br>
        <br>
        <?php
        include 'action/visualizePhotoAction.php';
        ?>
        <form id="form" name="upload" method="POST" action="action/editPhotoAction.php"  >
            
            <input type='hidden'name='id' value="<?php echo $foto->getId(); ?>">
            <label>legeda</label>
            <input type='text' name='legend' value="<?php echo $foto->getLegend(); ?>">
            <label>Data de inclusão</label>
            <input type='text' name='dateInclusion' value="<?php echo $foto->getDateInclusionPhoto(); ?>">
            <a href="action/deletePhotoAction.php?id=<?php echo $foto->getId(); ?>">Delete</a>
            <img src='<?php echo $dir ?>' width=500 height=500 />
            <input name="enviar" type="submit" id="enviar" value="Salvar..." /> 
        </form>


    </body>
</htn>
